Optimal. Leaf size=71 \[ -\frac{\cot (x)}{3}-\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [3]{-1}} \cot (x)\right )}{3 \sqrt{1+\sqrt [3]{-1}}}-\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{2/3}} \cot (x)\right )}{3 \sqrt{1-(-1)^{2/3}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.118622, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {3211, 3181, 203, 3175, 3767, 8} \[ -\frac{\cot (x)}{3}-\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [3]{-1}} \cot (x)\right )}{3 \sqrt{1+\sqrt [3]{-1}}}-\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{2/3}} \cot (x)\right )}{3 \sqrt{1-(-1)^{2/3}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3211
Rule 3181
Rule 203
Rule 3175
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{1-\cos ^6(x)} \, dx &=\frac{1}{3} \int \frac{1}{1-\cos ^2(x)} \, dx+\frac{1}{3} \int \frac{1}{1+\sqrt [3]{-1} \cos ^2(x)} \, dx+\frac{1}{3} \int \frac{1}{1-(-1)^{2/3} \cos ^2(x)} \, dx\\ &=\frac{1}{3} \int \csc ^2(x) \, dx-\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{1+\left (1+\sqrt [3]{-1}\right ) x^2} \, dx,x,\cot (x)\right )-\frac{1}{3} \operatorname{Subst}\left (\int \frac{1}{1+\left (1-(-1)^{2/3}\right ) x^2} \, dx,x,\cot (x)\right )\\ &=-\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [3]{-1}} \cot (x)\right )}{3 \sqrt{1+\sqrt [3]{-1}}}-\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{2/3}} \cot (x)\right )}{3 \sqrt{1-(-1)^{2/3}}}-\frac{1}{3} \operatorname{Subst}(\int 1 \, dx,x,\cot (x))\\ &=-\frac{\tan ^{-1}\left (\sqrt{1+\sqrt [3]{-1}} \cot (x)\right )}{3 \sqrt{1+\sqrt [3]{-1}}}-\frac{\tan ^{-1}\left (\sqrt{1-(-1)^{2/3}} \cot (x)\right )}{3 \sqrt{1-(-1)^{2/3}}}-\frac{\cot (x)}{3}\\ \end{align*}
Mathematica [C] time = 0.264715, size = 117, normalized size = 1.65 \[ \frac{\sin (x) (8 \cos (2 x)+\cos (4 x)+15) \left (6 \cos (x)+i \sqrt [4]{-3} \left (\sqrt{3}+3 i\right ) \sin (x) \tan ^{-1}\left (\frac{1}{2} \sqrt [4]{-\frac{1}{3}} \left (\sqrt{3}-i\right ) \tan (x)\right )+\sqrt [4]{-3} \left (\sqrt{3}-3 i\right ) \sin (x) \tan ^{-1}\left (\frac{(-1)^{3/4} \left (\sqrt{3}+i\right ) \tan (x)}{2 \sqrt [4]{3}}\right )\right )}{144 \left (\cos ^6(x)-1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.092, size = 233, normalized size = 3.3 \begin{align*} -{\frac{1}{3\,\tan \left ( x \right ) }}-{\frac{\sqrt{3}\sqrt{2\,\sqrt{3}-3}\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+\tan \left ( x \right ) \sqrt{2\,\sqrt{3}-3}+\sqrt{3} \right ) }{36}}+{\frac{1}{3\,\sqrt{2\,\sqrt{3}+3}}\arctan \left ({\frac{2\,\tan \left ( x \right ) +\sqrt{2\,\sqrt{3}-3}}{\sqrt{2\,\sqrt{3}+3}}} \right ) }+{\frac{\sqrt{3}}{6\,\sqrt{2\,\sqrt{3}+3}}\arctan \left ({\frac{2\,\tan \left ( x \right ) +\sqrt{2\,\sqrt{3}-3}}{\sqrt{2\,\sqrt{3}+3}}} \right ) }+{\frac{\sqrt{3}\sqrt{2\,\sqrt{3}-3}\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}-\tan \left ( x \right ) \sqrt{2\,\sqrt{3}-3}+\sqrt{3} \right ) }{36}}+{\frac{1}{3\,\sqrt{2\,\sqrt{3}+3}}\arctan \left ({\frac{2\,\tan \left ( x \right ) -\sqrt{2\,\sqrt{3}-3}}{\sqrt{2\,\sqrt{3}+3}}} \right ) }+{\frac{\sqrt{3}}{6\,\sqrt{2\,\sqrt{3}+3}}\arctan \left ({\frac{2\,\tan \left ( x \right ) -\sqrt{2\,\sqrt{3}-3}}{\sqrt{2\,\sqrt{3}+3}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{1}{\cos \left (x\right )^{6} - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]